<?php

class languageActions extends sfActions
{
  public function executeChangeLanguage(sfWebRequest $request)
  {
    $form = new sfFormLanguage(
      $this->getUser(),
      array('languages' =>  sfConfig::get('app_avalible_languages'))
    );
   
    $form->process($request);
 
    return $this->redirect('localized_homepage');
  }
}